package com.guslegend.spzx.manager.service;

import com.github.pagehelper.PageInfo;
import com.guslegend.spzx.model.dto.system.SysRoleDto;
import com.guslegend.spzx.model.entity.system.SysRole;

import java.util.Map;

/**
 * @author: guslegend
 * @description: 角色服务层
 * @create: 2025-05-07 10:05
 **/
public interface SysRoleService {
    PageInfo<SysRole> findByPage(SysRoleDto sysRoleDto, Integer pageNum, Integer pageSize);

    public void saveSysRole(SysRole sysRole);

    public void updateSysRole(SysRole sysRole);

    public void deleteById(Long roleId);

    Map<String, Object> findAllRoles(Long userId);
}
